package com.tbsoft.ehr.dao.overtime;

import java.util.List;

import com.tbsoft.ehr.dao.BaseDao;
import com.tbsoft.ehr.model.StaffInfo;
import com.tbsoft.ehr.model.WorkOvertime;

public interface OvertimeDao extends BaseDao<WorkOvertime> {
	public WorkOvertime getOvertime(WorkOvertime overtime);
	
	/**
	 * 根据staffId获取其加班信息
	 * @param userId
	 * @return
	 */
	public List<WorkOvertime> getOvertimesByStaffId(String staffId);
	
	public List<WorkOvertime> getOvertimeByCondton(List<StaffInfo> staffLst,String yearMonth,int startIndex, int count);
	
	public int getOvertimeCount(List<StaffInfo> staffLst,String yearMonth);
	
	public WorkOvertime getOvertimeById(int id);
}
